package com.djx.service.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName EmailConsumer
 * @Date 2021/6/8 0008 下午 13:57
 * @Author Administrator
 * @Description TODO
 * Version 1.0
 */
@Component
@RabbitListener(queues = {"email_topic_queue"})
public class TopicEmailConsumer {
    @RabbitHandler
    public  void reviceMessage(String message){
        System.out.println("email_topic_queue--接收到的消息为："+message);
    }
}
